import { calcPointerRotateRad, drawDial, drawPointer } from "./drawClock";

// 补零
const zeroFilling: (val: any) => string = (val: any): string => {
  val = val.toString();

  if (val.length === 2) {
    return val;
  }
  return zeroFilling(`0${val}`);
};

export { calcPointerRotateRad, drawDial, drawPointer, zeroFilling };
